<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Location对象</title>


</head>

<body>

    <script>
        /* alert("跳转百度页面");
        location.href = "https://www.baidu.com"; */

        setTimeout(function () {
            location.href = "https://www.baidu.com";
        }, 3000);
    </script>
</body>


</html>